package com.hao.nettyrpc.transport;

import com.hao.nettyrpc.serializer.CommonSerializer;
import com.hao.nettyrpc.entity.RpcRequest;

/**
 * @author haoge
 * @version 1.0
 * @date 2023/4/11 12:29
 */
public interface RpcClient {
    //默认序列化方式  kryo
    int DEFAULT_SERIALIZER = CommonSerializer.KRYO_SERIALIZER;
    //核心方法
    Object sendRequest(RpcRequest rpcRequest);
}
